package com.example.sherlockzhong.plush_v2.CardBeans;

/*
 * Created by DosonLeung on 2014/7/30.
 */

import android.widget.ImageView;
import android.widget.TextView;

import com.example.sherlockzhong.plush_v2.R;
import com.example.sherlockzhong.plush_v2.View.CardHorizontalScrollView;


public class LessonCardBean {
    private static int cardId = 4;
    private static String cardClass = "Lesson";
    int lesson_icon;
    String lesson_title;
    String lesson_teacher;
    String lesson_timeandaddress;
    String lesson_day;
    String lesson_roll_call;

    public LessonCardBean() {
        this.lesson_icon = R.drawable.lesson_icon;
        this.lesson_title = "";
        this.lesson_teacher = "";
        this.lesson_timeandaddress = "";
        this.lesson_day = "";
        this.lesson_roll_call = "";
    }

    public static int getCardId() {
        return cardId;
    }

    public static String getCardClass() {
        return cardClass;
    }

    public int getLessonIcon() {
        return lesson_icon;
    }

    public void setLessonIcon(int lesson_icon) {
        this.lesson_icon = lesson_icon;
    }

    public String getLessonTitle() {
        return lesson_title;
    }

    public void setLessonTitle(String lesson_title) {
        this.lesson_title = lesson_title;
    }

    public String getLessonTeacher() {
        return lesson_teacher;
    }

    public void setLessonTeacher(String lesson_teacher) {
        this.lesson_teacher = lesson_teacher;
    }

    public String getLessonTimeAndAddress() {
        return lesson_timeandaddress;
    }

    public void setLessonTimeAndAddress(String lesson_timeandaddress) {
        this.lesson_timeandaddress = lesson_timeandaddress;
    }

    public String getLessonDay() {
        return lesson_day;
    }

    public void setLessonDay(String lesson_day) {
        this.lesson_day = lesson_day;
    }

    public String getLesson_RollCall() {
        return lesson_roll_call;
    }

    public void setLesson_RollCall(String lesson_roll_call) {
        this.lesson_roll_call = lesson_roll_call;
    }

    public void insertTo(CardHorizontalScrollView v) {
        ImageView lesson_icon = (ImageView) v.findViewById(R.id.lesson_icon);
        TextView lesson_title = (TextView) v.findViewById(R.id.lesson_title);
        TextView lesson_teacher = (TextView) v.findViewById(R.id.lesson_teacher);
        TextView lesson_timeandaddress = (TextView) v.findViewById(R.id.lesson_timeandaddress);
        TextView lesson_day = (TextView) v.findViewById(R.id.lesson_day);
        TextView lesson_roll_call = (TextView) v.findViewById(R.id.lesson_roll_call);

        lesson_icon.setImageResource(this.getLessonIcon());
        lesson_title.setText(this.getLessonTitle());
        lesson_teacher.setText(this.getLessonTeacher());
        lesson_timeandaddress.setText(this.getLessonTimeAndAddress());
        lesson_day.setText(this.getLessonDay());
        lesson_roll_call.setText(this.getLesson_RollCall());
    }
}
